import fly from '../utils/fly.js'
/**
 * 商品详情
 */
export function GetGoodsDetail(goods_id) {
	return fly.get({
		url: '/applet/goods/'+goods_id,
		needToken: false,
	})
}
/**
 * 记录浏览器商品次数
 */
export function GoodsVisitNum(goods_id) {
	return fly.get({
		url: '/applet/goods/'+goods_id+'/visit',
		needToken: false,
	})
}
/**
 * 商品详情
 */
export function goodsSku(goods_id) {
	return fly.get({
		url: '/applet/goods/'+goods_id+'/skus',
		needToken: false
	})
}
/**
 * 商品系列分类
 */
export function goodsLable(shop_id) {
	return fly.get({
		url: '/applet/goods/lable/'+shop_id,
		needToken: false
	})
}
/**
 * 商品查询
 */
export function goodsLableSearch(params) {
	return fly.get({
		url: '/applet/index/shop/goods/search',
		needToken: false,
		params:params
	})
}
/**
 * 店铺首页系列商品
 */
export function getseriesList(shop_id) {
	return fly.get({
		url: '/applet/index/shop/series/'+shop_id,
		needToken: false
	})
}
